package com.niubility.vo;


import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @ClassName: GetDate
 * @Description: 获取当前时间
 * @author: 张家乐
 * @DATE: 2018/1/31
 */
public class GetDate {
    public static String getDate(){
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd hh:mm");
        String nowdate=sdf.format(new Date());
        return nowdate;
    }
    //public static void main(String[] args){}
}
